import os

class Getpath():
    @staticmethod
    def getfile(pathname):
        flist=[]
        for cur_folder,folders,fnames in os.walk(pathname):
            for fname in fnames:
                flist.append(os.path.join(cur_folder,fname))
        return flist

    @staticmethod
    def getfile_list(pathname):
        flist=[]
        for cur_folder,folders,fnames in os.walk(pathname):
            for fname in fnames:
                flist.append([cur_folder,fname])
        return flist

    @staticmethod
    def getfile_dict(pathname):
        fdict=dict()
        i=1
        for cur_folder,folders,fnames in os.walk(pathname):
            for fname in fnames:
                fdict.update({i:[cur_folder,fname]})
                i+=1
        return fdict

    @staticmethod
    def getfolder(pathname):
        flist=[]
        for cur_folder,folders,fnames in os.walk(pathname):
            for folder in folders:
                flist.append(os.path.join(cur_folder,folder))
        return flist

    

